#ifndef CONTROLPOINT_H
#define CONTROLPOINT_H

#include "MutaObject.h"
#include <QGraphicsEllipseItem>
#include <QEvent>

class ControlPoint : public MutaObject,public QGraphicsEllipseItem
{
    Q_OBJECT
public:
    ControlPoint(QPointF pos,int num,qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent);
    void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
    virtual void setPos(const QPointF &pos);

protected:
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    int type() const;
private:
    int num;
    int time;

signals:
    void mouseMoved(QPointF cPos,int num);
};

#endif // CONTROLPOINT_H
